package main

import "fmt"

type Person struct {
	name string
}

type Student struct {
	Person
	age   int
	name2 string
}


func (this Student) getInfo() (age int) {
	age = this.age
	return
}

func (this Student) getInfo() (name string) {
	name = this.name
	return
}

func main() {
	stu := Student{}
	stu.name = "Mr"
	stu.age = 123
	fmt.Println(stu.getInfo())
}
